package cn.catsdad;

import cn.catsdad.base.web.HttpResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author xuyl
 * @version V1.0.0 2024/8/12
 * @since V100R001
 */
@Component
@FeignClient(value = "catsdad-cloud-demo")
public interface DemoFeign {

    @GetMapping("/api/demo/crud")
    HttpResponse<List<Object>> pageQuery(@RequestParam(value = "page") Integer page, @RequestParam(value = "size") Integer rows);

}
